package com.billard.Query;

import lombok.Data;

@Data
public class UserQuery {
    private String username;
    private String name;
    private Long roleId;
    private Integer status;
    private Integer page = 1;
    private Integer size = 10;
    
    // 计算分页偏移量
    public Integer getPageOffset() {
        return (page - 1) * size;
    }
}